<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h3>保时捷718 Cayman T,红色，641000元起</h3>
    <script>
     //js定义对象，它有很多属性
     //var car =new Object();
     //{}是对象，不能写；对象属性name，后面是值
     var car={
         name:"保时捷718",
         type:"Cayman T"
     };
     console.log(car);

     //js动态增加属性，java做不到；静态语言
     car.name="保时捷718";
     car.type="Cayman T";
     car.color="红色";
     car.price=641000;
     console.log(car);
     
    </script>
</body>
</html>